<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<% String context = request.getContextPath(); %>
<html>
<head>
	<title>业务流程</title>
	<%--<link rel="stylesheet" type="text/css" href="<%=context %>/Source/lib/ligerUI/skins/ligerui-icons.css" />--%>
	<%--<link rel="stylesheet" type="text/css" href="<%=context %>/Source/lib/ligerUI/skins/Aqua/css/ligerui-all.css" />--%>
	<link rel="stylesheet" href="<%=context %>/Source/lib/layui/css/layui.css">
	<style type="text/css">
		.layui-form-label{
			width: 100px;
		}
		.layui-input-block{
			margin-left: 130px;
		}
	</style>

</head>
<body style="margin: 0;">
<%-- 表单 --%>
<div id="form1" style="margin-right: 50px;margin-top: 30px">
	<input id="processId" type="hidden"/>
	<div class="layui-form-item">
		<label class="layui-form-label">流程定义KEY</label>
		<div class="layui-input-block">
			<input id="processKey" name="processKey" type="text" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">流程名称</label>
		<div class="layui-input-block">
			<input id="processName" name="processName" type="text" class="layui-input">
		</div>
	</div>

</div>
</body>
<script src="<%=context %>/gooflow/jquery.min.js"></script>
<script src="<%=context %>/Source/lib/layui/layui.js"></script>

<script type="text/javascript">
    var path = '<%=context %>';
    var processLod = ${process};
    $(function(){
        setData();
    });

    function setData(){
        if(processLod){
            $("#processId").val(processLod.id);
            $("#processKey").val(processLod.processKey);
            $("#processName").val(processLod.processName);
        }
    }


    function getData(){
        var data = {id: $("#processId").val(), processKey:$("#processKey").val(), processName:$("#processName").val()};
        return JSON.stringify(data)
    }
</script>
</html>
